package com.stellar.circle.basic.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.io.Serializable;

/**
 * 帖子话题关联表(SPostTagMapping)实体类
 *
 * @author Jqchan
 * @since 2025-05-17 19:30:48
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class SPostTagMapping implements Serializable {
    private static final long serialVersionUID = 755608138951966873L;

    /**
     * 关联ID，主键
     */
    private Long id;

    /**
     * 帖子ID（关联s_post表id）
     */
    private Long postId;

    /**
     * 话题ID（关联s_tag表id）
     */
    private Long tagId;

    /**
     * 所属学校ID
     */
    private Long schoolId;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 创建人
     */
    private String createBy;

    /**
     * 修改时间
     */
    private Date updateTime;

    /**
     * 修改人
     */
    private String updateBy;

    /**
     * 是否删除：1-删除/0-未删除
     */
    private Integer isDeleted;

    public SPostTagMapping(Long postId, Long tagId, Long schoolId, Date createTime, Integer isDeleted) {
        this.postId = postId;
        this.tagId = tagId;
        this.schoolId = schoolId;
        this.createTime = createTime;
        this.isDeleted = isDeleted;
    }


}
